/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg23designpatterns.za.ac.cput.structural.composite;

/**
 *
 * @author Oceanwave
 */
public class Leaf implements Component 
{
    String name;

    public Leaf(String name) 
    {
        this.name = name;
    }

    @Override
    public void sayHello() {
        System.out.println(name + " leaf says Hello");
    }

    @Override
    public void sayGoodBye() {
        System.out.println(name + " leaf says Goodbye");
    }
}
